package com.firewolf.oa.entities;

import java.util.HashSet;
import java.util.Set;

public class Role {
	private Long id;
	private String name;
	private String desci;
	private Set<User> users = new HashSet<>();//角色下面的用户
	private Set<Permission> permissions = new HashSet<>();
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesci() {
		return desci;
	}
	public void setDesci(String desci) {
		this.desci = desci;
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", desci=" + desci + "]";
	}
	public Set<User> getUsers() {
		return users;
	}
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	public Set<Permission> getPermissions() {
		return permissions;
	}
	public void setPermissions(Set<Permission> permissions) {
		this.permissions = permissions;
	}
}
